<?php
include_once( '/weiboAPI/config.php' );
include_once( '/weiboAPI/saetv2.ex.class.php' );
$oo=new SaeTClientV2(WB_AKEY,WB_SKEY,$_SESSION['token']['access_token'],$_SESSION['token']['refresh_token']);
$point = array();

$content = $oo->getPointById('B2094652D46AA5FD469B');
//var_dump($content);
$user = $content['statuses'];
foreach($user as $val){
	echo "<div style='float:left;width:200px;margin:5px'><img src='".$val['bmiddle_pic']."' style='width:200px'>";
	echo $val['user']['name']." | ".$val['user']['location']." | ".$val['text']."</div>";
}


if(isset($_SESSION['comm_login'])!=""){
		echo '<div class="login_info"><img src="'.$_SESSION['avatar'].'" style="width:24px;height:24px;" class="avatar"><div class="oys_login">'.$_SESSION['nick'].'<a href="qq_login_out.php?reurl='.$_SERVER['REQUEST_URI'].'">退出</a></div></div>';
		}else{
			$fromurl=urlencode($_SERVER['REQUEST_URI']."&hf_tips=1");
			echo '<div class="login_info"><span class="oys_login">登录:</span> <a href="TencentAPI/oauth/qq_login.php?fromurl='.$fromurl.'"><img src="image/qq_login.png" class="oys_login"><span class="oys_login">QQ</span></a>';
			echo '<a href="/weiboAPI/index.php?fromurl='.$fromurl.'"><img src="image/weibo_login.png" class="oys_login"><span class="oys_login">新浪</span></a></div>';
			}
?>